-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rest endpoint for create_from_source_index #119250
Merged
parkertimmins
merged 7 commits into
elastic:main
from
parkertimmins:create-index-from-source-rest-api
Jan 8, 2025
Merged
Add rest endpoint for create_from_source_index #119250
parkertimmins
merged 7 commits into
elastic:main
from
parkertimmins:create-index-from-source-rest-api
Jan 8, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parkertimmins
added
auto-backport
Automatically create backport pull requests when merged
v8.18.0
labels
Dec 23, 2024
masseyke
reviewed
Jan 2, 2025
...igrate/src/main/java/org/elasticsearch/xpack/migrate/action/CreateIndexFromSourceAction.java
Show resolved
Hide resolved
elasticsearchmachine
added
the
needs:triage
Requires assignment of a team area label
label
Jan 7, 2025
parkertimmins
added
:Data Management/Data streams
Data streams and their lifecycles
and removed
needs:triage
Requires assignment of a team area label
labels
Jan 7, 2025
elasticsearchmachine
added
the
Team:Data Management
Meta label for data/management team
label
Jan 7, 2025
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @parkertimmins, I've created a changelog YAML for you. |
lukewhiting
reviewed
Jan 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far :-)
...igrate/src/main/java/org/elasticsearch/xpack/migrate/action/CreateIndexFromSourceAction.java
Outdated
Show resolved
Hide resolved
masseyke
approved these changes
Jan 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Backport successful
|
parkertimmins
added a commit
to parkertimmins/elasticsearch
that referenced
this pull request
Jan 8, 2025
Add rest endpoint which creates a new index using the settings and mappings from an existing source index. Setting and mapping overrides can be added to the request which will override settings and mappings from the source index. Example: `PUT /_create_from/{source}/{dest}` Content is optional but can include a `settings_override` and `mappings_override` which will be combined with the settings and mappings from the source index to create the destination index.
elasticsearchmachine
pushed a commit
that referenced
this pull request
Jan 8, 2025
Add rest endpoint which creates a new index using the settings and mappings from an existing source index. Setting and mapping overrides can be added to the request which will override settings and mappings from the source index. Example: `PUT /_create_from/{source}/{dest}` Content is optional but can include a `settings_override` and `mappings_override` which will be combined with the settings and mappings from the source index to create the destination index.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
auto-backport
Automatically create backport pull requests when merged
:Data Management/Data streams
Data streams and their lifecycles
>enhancement
Team:Data Management
Meta label for data/management team
v8.18.0
v9.0.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add rest endpoint for create-index-from-source action. This endpoint will create a new index using the settings and mappings from an existing source index. Setting and mapping overrides can be added to the request which will override settings and mappings from the source index.
Request
Method:
POST
orPUT
Path:
_create_from/{source}/{dest}
wheresource
is an existing source index anddest
is the name of the index to create.Body can contain
settings_override
andmappings_override
which are standard setting and mapping objects which will be merged with values from source index.